#include "stack.h"

int main()
{
	stack test;
	int i;
	inital_stack(&test);
	push_stack(&test, 5);
	push_stack(&test, 7);
	push_stack(&test, 9);
	push_stack(&test, 3);
	push_stack(&test, 1);
	top_stack(&test);
	print_stack(test);
	pop_stack(&test, &i);
	pop_stack(&test, &i);
	pop_stack(&test, &i);
	top_stack(&test);
	print_stack(test);
	/*while (test.top)
	{
		printf("%3d", test.top->val);
		test.top = test.top->next;
	}*/
	

	return 0;
}